﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NPOI.XSSF.UserModel;
using NPOI.HSSF.UserModel;
using NPOI.SS.UserModel;
using System.IO;
using StudentsInfor.Model;
using StudentsInfor.Services;

namespace StudentsInfor
{
    class Program
    {
        /// <summary>
        /// 将excel数据读入，计算平均分以及记录最高最低的信息
        /// </summary>
        /// <param name="args"></param>
        static void Main(string[] args)
        {
            List<Student> students = new List<Student>();
            
            //找到文件位置
            string path = "StudentInfor.xlsx";
            
            //输出相关信息
            ReadExcel.ReadExl(path,students);
            StuService.OutputInfor(students);
            Console.ReadKey();
        }
    }
}
